# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=py3-pymdown-extensions
pkgver=10.4
pkgrel=0
pkgdesc="extension pack for Python Markdown"
url="https://github.com/facelessuser/pymdown-extensions"
arch="noarch"
license="MIT"
depends="python3 py3-markdown"
makedepends="py3-gpep517 py3-hatchling"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/pymdown-extensions/pymdown_extensions-$pkgver.tar.gz"
builddir="$srcdir/pymdown_extensions-$pkgver"
options="!check" # Some tests fail.

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/pymdown_extensions*.whl
}

sha512sums="
efcd958fce5d0445ecb9c7a844caa8306998647376cdb8c04d3bfcbff45f12f949230048a0fb9be50c59e814a445e38c1e57f749c5fe7f64f82f36853ef77cf0  pymdown_extensions-10.4.tar.gz
"
